
var dataset = new createDataset();
dataset.setActionName("fpsp.apply.system.command.Server_Manager");
/**
 * 服务器联机测试
 * @return
 */
function testConn_onclick()
{
	dataset.setExcuteMethod("testCon");
	dataset.post();
	
	var dialogArg = "dialogwidth:550px; Dialogheight:350px;center:yes;help:no;resizable:no;scroll:no;status:no";
	var arg = new Object();
		arg.errmsg = dataset.getDataValue();
		
	var  dd    = window.showModalDialog(contextPath +"/UI/system/command/ServerShowMsg.jsp",arg, dialogArg);

	return;
	
	
}
/**
 * 服务器启动
 * @return
 */
function StartServer_onclick()
{
	if (confirm("您确认启动后台服务器"))
	{
		dataset.setExcuteMethod("StartServer");
		dataset.post();
		
		var dialogArg = "dialogwidth:550px; Dialogheight:350px;center:yes;help:no;resizable:no;scroll:no;status:no";
		var arg = new Object();
			arg.errmsg = dataset.getDataValue();
			
		var  dd    = window.showModalDialog(contextPath +"/UI/system/command/ServerShowMsg.jsp",arg, dialogArg);
	}

}
/**
 * 服务器停止
 * @return
 */
function StopServer_onclick()
{
	if (confirm("您确认停止后台服务器"))
	{
		dataset.setExcuteMethod("StopServer");
		dataset.post();
		
		var dialogArg = "dialogwidth:550px; Dialogheight:350px;center:yes;help:no;resizable:no;scroll:no;status:no";
		var arg = new Object();
			arg.errmsg = dataset.getDataValue();
			
		var  dd    = window.showModalDialog(contextPath +"/UI/system/command/ServerShowMsg.jsp",arg, dialogArg);
	}

}
/**
 * 文件编译
 * @return
 */
function CompilationFile_onclick()
{
	if (confirm("您确认编译后台文件"))
	{
		dataset.setExcuteMethod("CompilationFile");
		dataset.post();
		
		var dialogArg = "dialogwidth:550px; Dialogheight:350px;center:yes;help:no;resizable:no;scroll:no;status:no";
		var arg = new Object();
			arg.errmsg = dataset.getDataValue();
			
		var  dd    = window.showModalDialog(contextPath +"/UI/system/command/ServerShowMsg.jsp",arg, dialogArg);
	}

}

/**
 * 文件加载
 * @return
 */
function LoadFile_onclick()
{
	if (confirm("您确认加载后台文件"))
	{
		dataset.setExcuteMethod("LoadFile");
		dataset.post();
		
		var dialogArg = "dialogwidth:550px; Dialogheight:350px;center:yes;help:no;resizable:no;scroll:no;status:no";
		var arg = new Object();
			arg.errmsg = dataset.getDataValue();
			
		var  dd    = window.showModalDialog(contextPath +"/UI/system/command/ServerShowMsg.jsp",arg, dialogArg);
	}

}
/**
 * 系统初始化参数
 * @return
 */
function body_onload()
{
	
	window.mainmenu = new Yacon.widget.LeftMenu({elementID:"mainmenu"});
}
